package com.weactivity.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.weactivity.dto.MessageDTO;
import com.weactivity.dto.SendMessageDTO;
import com.weactivity.entity.Activity;
import com.weactivity.entity.Message;
import com.weactivity.entity.Resource;

import java.util.List;

public interface MessageService extends IService<Message> {
    int findUnReadById(Long userId);

    List<MessageDTO> findAllById(Long userId);

    int deleteById(int id);

     int sendAllMessage(SendMessageDTO sendMessageDTO);

    int isRead(int nid);

    int sendConfictedMessageToOrg(int conficetedActOrgId, Activity confictedActivity, Resource confictedResource, List<Resource> similarResourceList);

    int systemSendSingleConfictMessage(Integer userId, String contentSystemMessageToConfictUser, String subjectSystemMessageToConfictUsre, String nowStr);
}
